# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=postmarketos-welcome
pkgver=0.8.0
pkgrel=1
pkgdesc="postmarketOS welcome app"
url="https://gitlab.postmarketos.org/postmarketOS/postmarketos-welcome"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	desktop-file-utils
	glib-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	"
source="
	https://gitlab.postmarketos.org/postmarketOS/postmarketos-welcome/-/archive/$pkgver/postmarketos-welcome-$pkgver.tar.bz2
	org.postmarketos.Welcome.desktop
	"
options="!check" # No tests
replaces="postmarketos-welcome-gtk3"
provides="postmarketos-welcome-gtk3=$pkgver-r$pkgrel"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install -C output
	install -Dm644 "$srcdir"/org.postmarketos.Welcome.desktop \
		"$pkgdir"/etc/xdg/autostart/org.postmarketos.Welcome.desktop
}

sha512sums="
9a3ab287c833d9750aeec6445f6049057bf66a2393fae8f58ecafd7b39d2b0e2449a0398e9bd77b9ffc2f70bded8355da79e61837b1b3222c2111a732cdb6b0a  postmarketos-welcome-0.8.0.tar.bz2
abf57cca997ef78cd6f71e370433e1776b80ab6a55c471eb5ce97008aedfec3e01e120dd8449899e4c15edf90e3679a6b3d62a64937b84d00762433680749ad1  org.postmarketos.Welcome.desktop
"
